package com.travelzen._8.polymorphic.shapetest;

import java.util.Random;

public class RandomShapeGenerator {
	private Random rand = new Random();
	public Shape next(){
		switch(rand.nextInt(10)){
		default:
		case 0: return new Circle();
		case 1: return new Square();
		case 2: return new Triangle();
		}
	}
}
